package m3f.interact;

import java.io.IOException;

import m3f.backprojection.Combiner;
import m3f.data.MultimodalCachedLoader;
import m3f.data.MultimodalDataSet;
import m3f.data.SingleDataSet;
import m3f.retrieval.CombineImages;
import m3f.retrieval.Rank;
import m3f.retrieval.CombineImages.Operator;

public class CombineImagesByCase {


	public static void run(String[] args) throws IOException {
		if(args.length < 6){
			System.out.println("Parameters:\n" +
					"\t1 Image list file name\n" +
					"\t2 Image features file name\n" +
					"\t3 Combined images file\n" +
					"\t4 Combined image features output file name\n" +
					"\t5 Operator [avg, max, sum]\n");
			System.exit(0);
		}
		
		String imageListFileName = args[1];
		String imageFeaturesFileName = args[2];
		String combinedImagesFile = args[3];
		String combinedImageFeaturesFileName = args[4];
		CombineImages.Operator op = CombineImages.Operator.valueOf(args[5]);
		
		CombineImages ci = new CombineImages(imageListFileName, imageFeaturesFileName, combinedImagesFile, combinedImageFeaturesFileName, op);
		
		
	}

}
